package org.cll.pattern.singleton.examplethree;

/**
 * @ClassName Zoo
 * @Description TODO
 * @Author Administrator
 * @Date 2024-09-11 15:28:57
 * @Version 1.0
 **/
public class Zoo {
    protected String name;
    protected String qiguanStatus;

    public Zoo(String name) {
        this.name = name;
        System.out.println(name+"父类");
    }


    // 默认的繁殖方法（胎生）
    public void reproduce() {
        //1受精
        shouJing();
        //孕育
        yunYu();
        //落地方式（剖妇产，顺产）
        method();
    }
    private void shouJing(){
        System.out.println(name + " 受精");
    }
    private void yunYu(){
        System.out.println(name + " 孕育");
    }
    private void method(){
        System.out.println(name + " 落地方式");
    }



}
